package lab01;
import java.util.Scanner;
public class Test08 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入您的数：（范围在1~100）");
        int gussNum=(int)(Math.random()*100)+1;
        while(true){
            int result=sc.nextInt();
            if (result>gussNum){
                System.out.println("猜大了");
            }
            else if (result<gussNum){
                System.out.println("猜小了");
            }
            else{
                System.out.println("猜对了");
                break;
            }
        }
    }
}
